package com.zcc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private int id;
    private String name;

    //多对一，关联老师，所以需要在学生的类里面加入对应的老师
    private Teacher teacher;
}
